﻿<UserControl x:Class="CYPlayer.ProjectViews.PreferencesView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="273" d:DesignWidth="425" >

    <Grid Height="273">
        <Grid Mouse.MouseDown="BackToPlayerClick">
            <Grid.RowDefinitions>
                <RowDefinition Height="24*" />
                <RowDefinition Height="259*" />
            </Grid.RowDefinitions>
            <Border Background="MintCream" Grid.ColumnSpan="2" Grid.RowSpan="2" Height="24" VerticalAlignment="Top">
                <TextBlock FontSize="16" Height="24" TextAlignment="Center" Width="423">Preferences</TextBlock>
            </Border>
            <Grid Opacity="0.5">
                <Rectangle Fill="Gray" Grid.Row="0" Width="24" Height="24" 
                           HorizontalAlignment="Left" Opacity="1"/>
                    <Path Fill="Black" Data="M6,12 17,5 17,19Z" Opacity="1"/>
                
                <Grid.Triggers>
                     <EventTrigger RoutedEvent="Grid.MouseEnter">
                           <BeginStoryboard>
                               <Storyboard>
                                   <DoubleAnimation To="1" Duration="0:0:0.5" AccelerationRatio="0.10" 
                                                    DecelerationRatio="0.25" 
                                                    Storyboard.TargetProperty="(Grid.Opacity)"/>
                                </Storyboard>
                            </BeginStoryboard>
                      </EventTrigger>
                      <EventTrigger RoutedEvent="Grid.MouseLeave">
                            <BeginStoryboard>
                                <Storyboard>
                                    <DoubleAnimation From="1" To="0.5" Duration="0:0:0.5" AccelerationRatio="0.10" 
                                                     DecelerationRatio="0.25" 
                                                     Storyboard.TargetProperty="(Grid.Opacity)" />
                                </Storyboard>
                            </BeginStoryboard>
                       </EventTrigger>
                </Grid.Triggers>
            </Grid>
            
            <TabControl Grid.Row="1" Height="248" HorizontalAlignment="Left" VerticalAlignment="Top" Width="425">
                <TabItem Header="General">
                    <Grid />
                </TabItem>
                <TabItem Header="Playback">
                    <Grid />
                </TabItem>
                <TabItem Header="Codecs">
                    <Grid />
                </TabItem>
                <TabItem Header="Subtitles">
                    <Grid />
                </TabItem>
            </TabControl>
        </Grid>
    </Grid>
</UserControl>
